﻿using iWare.Wms.Core;
using iWare.Wms.Core.Service;
using System.ComponentModel.DataAnnotations;

namespace iWare.Wms.Application
{    
    
    /// <summary>
    /// 库区信息查询参数
    /// </summary>
    public class WmsAreaSearch : PageInputBase
    {
        /// <summary>
        /// 名称
        /// </summary>
        public virtual string Areaname { get; set; }
        
        /// <summary>
        /// 分类
        /// </summary>
        public virtual iWare.Wms.Core.Enum.AreaType? Areatype { get; set; }
        
        /// <summary>
        /// 描述
        /// </summary>
        public virtual string Areadesc { get; set; }
        
        /// <summary>
        /// 状态
        /// </summary>
        public virtual iWare.Wms.Core.CommonStatus? Areastatus { get; set; }
        
    }

    /// <summary>
    /// 库区信息输入参数
    /// </summary>
    public class WmsAreaInput
    {
        /// <summary>
        /// 名称
        /// </summary>
        public virtual string Areaname { get; set; }
        
        /// <summary>
        /// 分类
        /// </summary>
        public virtual iWare.Wms.Core.Enum.AreaType Areatype { get; set; }
        
        /// <summary>
        /// 描述
        /// </summary>
        public virtual string Areadesc { get; set; }
        
        /// <summary>
        /// 状态
        /// </summary>
        public virtual iWare.Wms.Core.CommonStatus Areastatus { get; set; }
        
    }

    public class AddWmsAreaInput : WmsAreaInput
    {
        /// <summary>
        /// 名称
        /// </summary>
        [Required(ErrorMessage = "名称不能为空")]
        public override string Areaname { get; set; }
        
    }

    public class DeleteWmsAreaInput : BaseId
    {
    }

    public class UpdateWmsAreaInput : WmsAreaInput
    {
        /// <summary>
        /// Id主键
        /// </summary>
        [Required(ErrorMessage = "Id主键不能为空")]
        public long Id { get; set; }
        
    }

    public class QueryeWmsAreaInput : BaseId
    {

    }
}
